/**
 * Created by 功振 on 2016/3/30.
 * 设置angularjs全局变量
 */
angular.module('NatureCloud').value("ROLE", {
    DEVELOPER: "开发人员",
    QAER: "测试人员",
    OPERATOR: "运维人员"
});

angular.module('NatureCloud').value("VALUE", {
    WEB_SHELL_HOSTPORT: "webshell.fanjun.test.naturecloud.io",
    TUNNEL_DOMAIN:"tunnel-test.naturecloud.io:8090",
    ENV:"test"
});

angular.module('NatureCloud').value("VolMgrConf", {
    service_domain: "test.naturecloud.io",
    service_port:"80"
});

angular.module('NatureCloud').value("ReqSpecs", {
    specs: [
        "0.125Core 128M",
        "0.25Core 128M",
        "0.25Core 256M",
        "0.5Core 256M",
        "0.5Core 512M",
        "0Core 0M"
    ]
});
/**
 * registry v2 接口

angular.module('NatureCloud').value("registryVersion", {
    deleteRepo: '/apiV2/deleteRepo?id=',  // compare to v1 "/api/deleteRepo?id=" just add V2 after 'api'
    getTagURL:"/apiV2/listTag?imageurl=" ,
    getImagesURL:"/apiV2/listImgV2?isMarket=",
    getImageInfoURL:"/apiV2/listImg?isMarket=",
    deleteImage:"/apiV2/deleteImage"
});
 */
angular.module('NatureCloud').value("registryVersion", {
    deleteRepo: '/api/deleteRepo?id=',  // compare to v1 "/api/deleteRepo?id=" just add V2 after 'api'
    getTagURL:"/api/listTag?imageurl=" ,
    getImagesURL:"/api/listImgV2?isMarket=",
    getImageInfoURL:"/api/listImg?isMarket=",
    deleteImage:"/api/deleteImage"
});

/**
 *    hostpath:  for  local ,nfs
 *    distributor: for distributed filesystem
 */
angular.module('NatureCloud').value("StorageConfig", {
    defaultVolumeType: "distributor"
});
angular.module('NatureCloud').value("NetWorkSwitch",{
   networkSwitch:true
});
angular.module('NatureCloud').value("Switch",{
    switchport:"false"
});

